<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象的拓展方法</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
    </style>
</head>
<body>
    <script>
        let obj1 = {a:0,b:6,c:"洛璃"},
            obj2 = {x:1314,y:"云璃"}

        console.log(Object.assign(obj1,obj2));//合并多个对象为一个对象
    </script>
</body>
</html>